class Todoitem < ActiveRecord::Base
  scope :recent, ->() { where('created_at>=?', Time.current - 7.days) }
end
